import levin.levinCommon as levinCommon

"""
python -i tests/noguiTest.py
import tests.rebuildWorld as rebuildWorld
rebuildWorld.recreateWorldFromSystemData('newworld.pk')
"""

# rebuild the world : simply call recreateWorldFromSystemData()

def freshWorldFromSystemData():
    from levin.world.worldArea import WorldArea
    levinCommon.wineWorld = WorldArea("World")
    levinCommon.wineWorld.readSystemData()
    
def recreateWorldFromSystemData(fname = "world.pk"):
    freshWorldFromSystemData()
    levinCommon.wineWorld.saveContent(fname)
